function $(id){
    return document.getElementById(id);
}

if (!window.ZTL) {
    window.ZTL = {};
}

ZTL.addEventListener = function(element, type, handler) {
	if (element.addEventListener) {
		element.addEventListener(type, handler, false);
	} else if (element.attachEvent){
		handler._ieEventHandler = function () {
			handler(window.event);
		};
		(element).attachEvent("on" + type, (handler._ieEventHandler));
	}
}